package top.liubaiblog.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.liubaiblog.blog.pojo.ArticleCollection;
import top.liubaiblog.blog.vo.PageArticleVo;
import top.liubaiblog.blog.vo.param.ArticleCollectionParam;
import top.liubaiblog.blog.vo.param.PageParams;

/**
* @author 13326
* @description 针对表【ms_article_collection】的数据库操作Service
* @createDate 2022-12-10 15:15:17
*/
public interface ArticleCollectionService extends IService<ArticleCollection> {
    /**
     * 获取该文章是否被当前用户收藏
     */
    boolean isCollected(Long articleId);

    /**
     * 更新文章收藏状态
     */
    boolean updateByParam(ArticleCollectionParam collectionParam);

    /**
     * 获取收藏的文章列表
     */
    PageArticleVo pageByParam(PageParams pageParams);
}
